package org.exez.modules.visitor.dto.terminal;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @Description: 终端设备
 * @Author: exez-boot
 * @Date: 2020-06-20
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "设备注册对象", description = "终端设备")
public class DeviceTerminalDTO {

    /**
     * 事业单位编码
     */
    @Excel(name = "事业单位编码", width = 15)
    @ApiModelProperty(value = "事业单位编码",required = true)
    @NotBlank(message = "事业单位编码不能为空")
    private String institutionCode;

    /**
     * 事业单位编码
     */
    @Excel(name = "事业单位名称", width = 15)
    @ApiModelProperty(value = "事业单位名称",required = true)
    @NotBlank(message = "事业单位名称能为空")
    private String institutionName;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称",required = true)
    @NotBlank(message = "设备名称不能为空")
    private String deviceName;

    /**
     * 设备ip
     */
    @Excel(name = "设备ip", width = 15)
    @ApiModelProperty(value = "设备ip",required = true)
    @NotBlank(message = "设备ip不能为空")
    private String deviceIp;
    /**
     * 设备端口
     */
    @Excel(name = "设备端口", width = 15)
    @ApiModelProperty(value = "设备端口",required = true)
    @NotBlank(message = "设备端口不能为空")
    private String devicePort;
    /**
     * 设备编码
     */
    @Excel(name = "设备编码", width = 15)
    @ApiModelProperty(value = "设备编码",required = true)
    @NotBlank(message = "设备编码不能为空")
    private String deviceCode;
}
